#ifndef FOUNDATION_PROTOCOL_LUA_LUACONFIG_H
#define FOUNDATION_PROTOCOL_LUA_LUACONFIG_H
#include <functional>
#include <iostream>
#include <luacppinterface.h>
#include <string>
#include <dbms.pb.h>
#include "lua_scada.h"

namespace protocol {
class LuaConfig {
public:
	LuaConfig();
	bool LoadLuaFile(const std::string &protocolPath);
	std::string GetName(LuaTable &table, const std::string &key);
	dbms::FuncParams_t GetFuncpoint(LuaTable &table, const std::string &key);

private:
	Lua lua_;
	LuaScada *luaScada_;
};
} // namespace protocol
#endif